#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Generic;
using Cephei.QL;
namespace Cephei.QL.Experimental.Credit
{
     // <summary> 
	// ! Used to index market implied credit curve probabilities. It is a proxy to the defaultable bond or class of bonds which determines the credit contract conditions.  It aggregates the atomic default types in a group defining the contract conditions and which serves to index the probability curves calibrated to the market.
	// </summary>
    [Guid ("2D2BE1E9-42DA-4286-9AF4-0323B9A74700"),ComVisible(true)]
	public interface IDefaultProbKey 
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        
		 Cephei.QL.ICurrency Currency {get;}
        
		 Cephei.IVector<Cephei.QL.Experimental.Credit.IDefaultType> EventTypes {get;}
        
		 QL.Experimental.Credit.SeniorityEnum Seniority {get;}
        
		 UInt64 Size {get;}
    }

    // <summary> 
	// ! Used to index market implied credit curve probabilities. It is a proxy to the defaultable bond or class of bonds which determines the credit contract conditions.  It aggregates the atomic default types in a group defining the contract conditions and which serves to index the probability curves calibrated to the market. Factory
	// </summary>
   	[ComVisible(true)]
    public interface IDefaultProbKey_Factory // : Collection_Factory<IDefaultProbKey, ICell<IDefaultProbKey>>
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        /// <summary>
        /// Create a hybrid Vector of IDefaultProbKey, with event notification of changes
        /// </summary>
        /// <returns>a new Vector&ltIDefaultProbKey&gt</returns>
        IVector<IDefaultProbKey> CreateVector();
        /// <summary>
        /// Create a hybrid Vector of ICell of IDefaultProbKey, with event notification of changes
        /// </summary>
        /// <returns>a new ICell&ltIVector&ltI&ltIDefaultProbKey&gt&gt&gt</returns>
        Generic.ICell<IVector<Generic.ICell<IDefaultProbKey>>> CreateCellVector();
        IVector<IDefaultProbKey> CreateVector(IEnumerable<IDefaultProbKey> source);
        Generic.ICell<IVector<Generic.ICell<IDefaultProbKey>>> CreateCellVector(IEnumerable<Generic.ICell<IDefaultProbKey>> source);
        
	    IDefaultProbKey Create (Cephei.IVector<Cephei.QL.Experimental.Credit.IDefaultType> eventTypes, Cephei.QL.ICurrency cur, QL.Experimental.Credit.SeniorityEnum sen);
        
	    IDefaultProbKey Create ();
    }
}

